package com.sskj.qiangjin.ui.activity;

import android.text.TextUtils;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.sskj.lib.RConfig;
import com.sskj.lib.base.BaseActivity;
import com.sskj.qiangjin.R;
import com.sskj.qiangjin.presenter.ExchangePresenter;

import butterknife.BindView;

@Route(path = RConfig.APP_EXCHANGE)
public class ExchangeActivity extends BaseActivity<ExchangePresenter> {
    @BindView(R.id.tv_exchange)
    TextView tv_exchange;

    @Override
    protected int getLayoutResId() {
        return R.layout.app_activity_exchange;
    }

    @Override
    public ExchangePresenter getPresenter() {
        return new ExchangePresenter();
    }

    @Override
    protected void initView() {
        super.initView();
        setTitle("兑换");
        mPresenter.getExchange();
    }

    public void updataExchange(String exchangeMsg) {
        if (TextUtils.isEmpty(exchangeMsg)) {
            return;
        }
        tv_exchange.setText(exchangeMsg);

    }
}
